import 'package:bxultimate/data/request/organization_request.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';

import 'state.dart';

class OrganizationUserInformationController extends GetxController {
  final OrganizationUserInformationState state =
      OrganizationUserInformationState();

  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();

    getData();
  }

  getData() async {
    SmartDialog.showLoading(msg: '加载中...');
    state.userInfo = await OrganizationRequest.getTeamUserInfo(
        Get.arguments['idcard'], Get.arguments['teamId']);
    SmartDialog.dismiss();
  }
}
